<?php
namespace App\Model\front;

use Illuminate\Database\Eloquent\Model;
use DB;

class ArticalModel extends Model{
    const ART = 'artical';

    public function getArtList($where=[])
    {
        return DB::table(self::ART)->where($where)->paginate(5);
    }
}